class ChatField{
    constructor(playground){
        this.playground = playground;
        this.$history = $('<div class="ac-game-chat-field-history"></div>');
        this.$input = $('<input type="text" class="ac-game-chat-field-input">');

        this.$history.hide();
        this.$input.hide();

        this.playground.$playground.append(this.$history);
        this.playground.$playground.append(this.$input);

        this.start();
    }

    start(){
    }

    show_input(){
        this.$input.show();
        this.$input.focus();
    }

    hide_input(){
        this.$input.hide();
        this.playground.game_map.$canvas.focus();
    }
}
